import queue

q = queue.Queue()

q.put(1)
q.put(2)
q.put('3')
print(q.get())
print(q.get())
print(q.get())
# 队列里如果没有数据则会阻塞
# print(q.get())

lq = queue.LifoQueue()
lq.put(1)
lq.put(2)
lq.put('3')

print(lq.get())
print(lq.get())
print(lq.get())
# print(lq.get())

pq = queue.PriorityQueue()

pq.put((1, 'a'))
pq.put((4, 'b'))
pq.put((3, 'c'))

print(pq.get())
print(pq.get())
print(pq.get())